﻿<?php

// Martin Laas - kursus1109

$a = 1;
$b = 2;
$c = 3;

function fun_math ( $a, $b, $c )
{
	if ($a < $b)
	{
		$es = ($b - $a) + (-$c);
		echo "Ning tingimuse vastus on - $es<br>";
	}
	if ( ( $a > $b ) && $a > 0 && $b > 0 )
	{
		$te = pow($a, $b);
		echo "Ning tingimuse vastus on - $te<br>";
	}
	if ($ a == $b )
	{
		$ko = ($a + $c) + ($b - $c);
		echo "Ning tingimuse vastus on - $ko<br>";
	} 	
	if ( ( $a * $b ) == $c )
	{
		$ne = $c - ((2 * $a) * $b).
		echo "Ning tingimuse vastus on - $ne<br>";		
	}
	if ( ( $a > $b ) && ( $b > $c ) && ( $a > 0 ) && ( $b > 0 ) && ( $c > 0) )
	{
		$vi = ($a + $b) / $c;
		echo "Ning tingimuse vastus on - $vi<br>";
	}
	
}

?>